package oo5;

import oo4.*;

public class DogTest5 {
	public static void main(String[] args) {
		Dog d = new Dog("中华田园犬", "二黄", 100, 99, "母");
		System.out.println(d);

		Dog d2 = new Dog("中华田园猫", "二黄", 99, 100, "公");
		Dog d3 = d2;

		System.out.println("d3等于 d2? " + (d3 == d2));
		boolean isSame = d.equals(d2);
		System.out.println(isSame);
	}
}
